home *** CD-ROM | disk | FTP | other *** search
Wrap
card_4916.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>4916</id> <filler1>0</filler1> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>2801</owner> <link rel="stylesheet" type="text/css" href="stylesheet_5301.css" /> <content> <layer>background</layer> <id>2</id> <text> Happy Scripting ! </text> </content> <name></name> <script></script> </card> card_8462.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>8462</id> <filler1>0</filler1> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>2801</owner> <link rel="stylesheet" type="text/css" href="stylesheet_5301.css" /> <content> <layer>background</layer> <id>2</id> <text>Bonus functions: • Does this object have this variable? • List all variables for an object. • Remove a variable from an object. (only to save space) </text> </content> <name></name> <script></script> </card> card_5416.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>5416</id> <filler1>0</filler1> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>2801</owner> <link rel="stylesheet" type="text/css" href="stylesheet_5301.css" /> <content> <layer>background</layer> <id>2</id> <text>How to install: Copy the stack script of this stack and put it into your stack. Call allowInstVars once from each background in your stack to initialize. When you make a new background, don't forget to call it from there before using instance variables. </text> </content> <name></name> <script></script> </card> card_4497.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>4497</id> <filler1>0</filler1> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>2801</owner> <link rel="stylesheet" type="text/css" href="stylesheet_5301.css" /> <content> <layer>background</layer> <id>2</id> <text><span class="style1">ommon mistakes: • the id of button "Next" 5 the id of this card card id 5132 must say: the </span><span class="style4">short</span><span class="style1"> id of this card • getting the value from the wrong object. forgetting to change the ID part of call.</span></text> </content> <name></name> <script></script> </card> card_8322.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>8322</id> <filler1>0</filler1> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>2801</owner> <link rel="stylesheet" type="text/css" href="stylesheet_5301.css" /> <part> <id>1</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>324</left> <top>77</top> <right>372</right> <bottom>128</bottom> </rect> <style>rectangle</style> <showName> <true /> </showName> <highlight> <false /> </highlight> <autoHighlight> <false /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>3400</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>Engine</name> <script>on mouseUp -- put my current direction into the message box put getVar(cd,the id of me,"direction") end mouseUp </script> </part> <part> <id>2</id> <type>field</type> <visible> <true /> </visible> <dontWrap> <false /> </dontWrap> <dontSearch> <false /> </dontSearch> <sharedText> <false /> </sharedText> <fixedLineHeight> <false /> </fixedLineHeight> <autoTab> <false /> </autoTab> <lockText> <false /> </lockText> <rect> <left>17</left> <top>132</top> <right>485</right> <bottom>280</bottom> </rect> <style>shadow</style> <autoSelect> <false /> </autoSelect> <showLines> <false /> </showLines> <wideMargins> <true /> </wideMargins> <multipleLines> <false /> </multipleLines> <reservedFamily> 0 </reservedFamily> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>left</textAlign> <font>Courier</font> <textSize>14</textSize> <textStyle>plain</textStyle> <textHeight>18</textHeight> <name></name> <script></script> </part> <content> <layer>background</layer> <id>2</id> <text>Example: </text> </content> <content> <layer>background</layer> <id>21</id> <text> {speed{1{3}speed}1} {direction{1{west}direction}1}</text> </content> <content> <layer>card</layer> <id>2</id> <text><span class="style1">putVar cd,the id of cd btn "Engine","speed",3 put getVar(cd,the id of cd btn "Engine","speed") </span><span class="style3"> </span><span class="style1"> putVar cd,the id of cd btn "Engine","direction","west" put getVar(cd,the id of cd btn "Engine","direction") </span></text> </content> <name></name> <script>on closeCard hide msg box end closeCard</script> </card> card_3928.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>3928</id> <filler1>0</filler1> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>2801</owner> <link rel="stylesheet" type="text/css" href="stylesheet_5301.css" /> <content> <layer>background</layer> <id>2</id> <text>The calls have an optional argument, a card ID. This is used to access to variables on another card. Use it if you are showing one card and talking about variables in an object that is on another card. ID of object can come from saying "the short id of me" at the call. Or keep track of the IDs of objects and call from anywhere.</text> </content> <name></name> <script></script> </card> card_9024.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>9024</id> <filler1>0</filler1> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>2801</owner> <link rel="stylesheet" type="text/css" href="stylesheet_5301.css" /> <content> <layer>background</layer> <id>2</id> <text>(examples:) getVar (cdBk, myID, variable, cardID) getVar ("cd",the short id of me, "Favorite") getVar ("cd", 1, "Favorite")</text> </content> <name></name> <script></script> </card> card_6694.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>6694</id> <filler1>0</filler1> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>2801</owner> <link rel="stylesheet" type="text/css" href="stylesheet_5301.css" /> <part> <id>1</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>352</left> <top>3</top> <right>420</right> <bottom>27</bottom> </rect> <style>transparent</style> <showName> <false /> </showName> <highlight> <false /> </highlight> <autoHighlight> <false /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>card btn</name> <script>on mouseUp -- Test case --put the id of me --exit mouseUp repeat with ii = 1 to 10 put ii&",foo baz" into val putVar "cd",the id of me,"Favo,rite",val put getVar("cd",the id of me,"Favo,rite") end repeat end mouseUp</script> </part> <content> <layer>background</layer> <id>2</id> <text>Calling sequence: allowInstVars -- call it once per background to initialize (examples:) putVar cdBk, myID, variable, value, cardID putVar "cd", the id of me, "Favorite", true putVar "cd", 1, "Favorite", true </text> </content> <name></name> <script></script> </card> card_3791.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>3791</id> <filler1>0</filler1> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>2801</owner> <link rel="stylesheet" type="text/css" href="stylesheet_5301.css" /> <content> <layer>background</layer> <id>2</id> <text>The variables are stored in a hidden background field that holds a "dictionary". The dictionary will map: cd or bk, variable name, id of object into a value</text> </content> <name></name> <script></script> </card> card_7940.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>7940</id> <filler1>0</filler1> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>2801</owner> <link rel="stylesheet" type="text/css" href="stylesheet_5301.css" /> <content> <layer>background</layer> <id>2</id> <text>Exceptions: > Stack itself may not have instance variables (but cards and backgrounds can) > Total length cannot be greater than 32K. That is the total length of values of all instance variables for the objects on one card or for the shared objects in one background.</text> </content> <name></name> <script></script> </card> card_7689.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>7689</id> <filler1>0</filler1> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>2801</owner> <link rel="stylesheet" type="text/css" href="stylesheet_5301.css" /> <content> <layer>background</layer> <id>2</id> <text>Exceptions: > May not have { or } in the value or in the name. Commas are fine. > No variables for background fields that are not shared. It's ambiguous. Are the variables shared by many cards like the field? Or do they belong to just this card like the text?</text> </content> <name></name> <script></script> </card> card_9254.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>9254</id> <filler1>0</filler1> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>2801</owner> <link rel="stylesheet" type="text/css" href="stylesheet_5301.css" /> <part> <id>1</id> <type>field</type> <visible> <true /> </visible> <dontWrap> <false /> </dontWrap> <dontSearch> <false /> </dontSearch> <sharedText> <false /> </sharedText> <fixedLineHeight> <false /> </fixedLineHeight> <autoTab> <false /> </autoTab> <lockText> <true /> </lockText> <rect> <left>319</left> <top>196</top> <right>412</right> <bottom>319</bottom> </rect> <style>shadow</style> <autoSelect> <false /> </autoSelect> <showLines> <false /> </showLines> <wideMargins> <false /> </wideMargins> <multipleLines> <false /> </multipleLines> <reservedFamily> 0 </reservedFamily> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>left</textAlign> <font>Symbol</font> <textSize>24</textSize> <textStyle>plain</textStyle> <textHeight>32</textHeight> <name></name> <script></script> </part> <part> <id>2</id> <type>field</type> <visible> <true /> </visible> <dontWrap> <false /> </dontWrap> <dontSearch> <false /> </dontSearch> <sharedText> <false /> </sharedText> <fixedLineHeight> <false /> </fixedLineHeight> <autoTab> <false /> </autoTab> <lockText> <true /> </lockText> <rect> <left>351</left> <top>196</top> <right>438</right> <bottom>319</bottom> </rect> <style>shadow</style> <autoSelect> <false /> </autoSelect> <showLines> <false /> </showLines> <wideMargins> <false /> </wideMargins> <multipleLines> <false /> </multipleLines> <reservedFamily> 0 </reservedFamily> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>left</textAlign> <font>Symbol</font> <textSize>24</textSize> <textStyle>plain</textStyle> <textHeight>32</textHeight> <name></name> <script></script> </part> <part> <id>3</id> <type>field</type> <visible> <true /> </visible> <dontWrap> <false /> </dontWrap> <dontSearch> <false /> </dontSearch> <sharedText> <false /> </sharedText> <fixedLineHeight> <false /> </fixedLineHeight> <autoTab> <false /> </autoTab> <lockText> <true /> </lockText> <rect> <left>381</left> <top>196</top> <right>468</right> <bottom>319</bottom> </rect> <style>shadow</style> <autoSelect> <false /> </autoSelect> <showLines> <false /> </showLines> <wideMargins> <false /> </wideMargins> <multipleLines> <false /> </multipleLines> <reservedFamily> 0 </reservedFamily> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>left</textAlign> <font>Symbol</font> <textSize>24</textSize> <textStyle>plain</textStyle> <textHeight>32</textHeight> <name></name> <script></script> </part> <part> <id>4</id> <type>field</type> <visible> <true /> </visible> <dontWrap> <false /> </dontWrap> <dontSearch> <false /> </dontSearch> <sharedText> <false /> </sharedText> <fixedLineHeight> <false /> </fixedLineHeight> <autoTab> <false /> </autoTab> <lockText> <true /> </lockText> <rect> <left>422</left> <top>196</top> <right>510</right> <bottom>319</bottom> </rect> <style>shadow</style> <autoSelect> <false /> </autoSelect> <showLines> <false /> </showLines> <wideMargins> <false /> </wideMargins> <multipleLines> <false /> </multipleLines> <reservedFamily> 0 </reservedFamily> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>left</textAlign> <font>Symbol</font> <textSize>24</textSize> <textStyle>plain</textStyle> <textHeight>32</textHeight> <name></name> <script></script> </part> <part> <id>5</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>16</left> <top>258</top> <right>116</right> <bottom>280</bottom> </rect> <style>roundrect</style> <showName> <true /> </showName> <highlight> <false /> </highlight> <autoHighlight> <false /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>Remember</name> <script>-- An example of how to use Instance Variables. This script -- saves the location of four card fields. The location -- is saved as a variable belonging to the field itself. on mouseUp -- save the location of each card field repeat with ii = 1 to 4 put the ID of card fld ii into myID -- save the loc in the field's variable called "old location" putVar cd, myID, "old location", the loc of card fld ii end repeat end mouseUp on mouseStillDown -- do not allow this button itself to be dragged end mouseStillDown</script> </part> <part> <id>6</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>17</left> <top>286</top> <right>117</right> <bottom>308</bottom> </rect> <style>roundrect</style> <showName> <true /> </showName> <highlight> <false /> </highlight> <autoHighlight> <false /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>Jump Back</name> <script>-- An example of how to use Instance Variables. This script -- retrieves the location of four card fields. The location -- is saved as a variable belonging to the field itself. on mouseUp -- put each card field back in its old location repeat with ii = 1 to 4 put the ID of card fld ii into myID -- fetch the loc in the field's variable called "old location" put getVar(cd, myID, "old location") into old set the loc of card fld ii to old end repeat end mouseUp on mouseStillDown -- do not allow this button itself to be dragged end mouseStillDown </script> </part> <part> <id>7</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>17</left> <top>314</top> <right>132</right> <bottom>338</bottom> </rect> <style>roundrect</style> <showName> <true /> </showName> <highlight> <false /> </highlight> <autoHighlight> <true /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>Original Places</name> <script>-- An example of how to use Instance Variables. This script -- retrieves the original location of four card fields. -- The location is saved as a variable belonging to the field itself. -- (The original location value were put in from the message box.) on mouseUp -- put each card field back in its original location repeat with ii = 1 to 4 put the ID of card fld ii into myID -- fetch the loc in the field's variable called "init location" put getVar(cd, myID, "init location") into old set the loc of card fld ii to old end repeat end mouseUp on mouseStillDown -- do not allow this button itself to be dragged end mouseStillDown </script> </part> <part> <id>8</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>136</left> <top>307</top> <right>168</right> <bottom>339</bottom> </rect> <style>transparent</style> <showName> <false /> </showName> <highlight> <false /> </highlight> <autoHighlight> <false /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>init remem</name> <script> on mouseUpx --disabled -- save the location of each card field repeat with ii = 1 to 4 put the ID of card fld ii into myID putVar cd, myID, "init location", the loc of card fld ii end repeat end mouseUpx on mouseStillDown end mouseStillDown</script> </part> <part> <id>9</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>210</left> <top>276</top> <right>237</right> <bottom>301</bottom> </rect> <style>transparent</style> <showName> <false /> </showName> <highlight> <false /> </highlight> <autoHighlight> <false /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>1014</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>Prev</name> <script>on mouseUp visual effect wipe right go to previous card end mouseUp </script> </part> <part> <id>10</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>240</left> <top>276</top> <right>267</right> <bottom>301</bottom> </rect> <style>transparent</style> <showName> <false /> </showName> <highlight> <false /> </highlight> <autoHighlight> <false /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>1013</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>Next</name> <script>on mouseUp visual effect wipe left go to next card end mouseUp </script> </part> <part> <id>11</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>284</left> <top>270</top> <right>318</right> <bottom>303</bottom> </rect> <style>opaque</style> <showName> <false /> </showName> <highlight> <false /> </highlight> <autoHighlight> <false /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>0</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name></name> <script></script> </part> <content> <layer>background</layer> <id>2</id> <text>An Example: "Cards" (they are fields) that you can drag around, then press remember. Move them again, and press Jump Back. They each remember their original location.</text> </content> <content> <layer>card</layer> <id>1</id> <text>6 ®®® ®®® 6</text> </content> <content> <layer>card</layer> <id>2</id> <text>2 ß ß 2</text> </content> <content> <layer>card</layer> <id>3</id> <text>3 ™ ™ ™ 3</text> </content> <content> <layer>card</layer> <id>4</id> <text>4 © © © © 4</text> </content> <content> <layer>background</layer> <id>21</id> <text> {old location{1{196,149}old location}1} {old location{2{305,91}old location}2} {old location{3{424,257}old location}3} {old location{4{466,257}old location}4} {init location{1{365,257}init location}1} {init location{2{394,257}init location}2} {init location{3{424,257}init location}3} {init location{4{466,257}init location}4}</text> </content> <name></name> <script>on fix repeat with ii = 1 to 4 set locktext of card fld ii to true end repeat end fix on mouseStillDown if the name of the target contains "field" then set the loc of the target to the mouseLoc end mouseStillDown on mouseDown end mouseDown</script> </card> card_7669.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>7669</id> <filler1>0</filler1> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>2801</owner> <link rel="stylesheet" type="text/css" href="stylesheet_5301.css" /> <content> <layer>background</layer> <id>2</id> <text>This offering is a stack script that allows you to have instance variables in any HyperCard object. As many variables as you want in each object. Any value allowed in a nornal HC variable. Any name you want. Spaces OK. Values stay when you quit HC. Stay with stack when you drag it to another disk.</text> </content> <name></name> <script></script> </card> card_7375.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>7375</id> <filler1>0</filler1> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>2801</owner> <link rel="stylesheet" type="text/css" href="stylesheet_5301.css" /> <content> <layer>background</layer> <id>2</id> <text>Kinds of variables in HyperCard > local variables in scripts (gone after script done) > global variables (gone when quit stack, must have different names, all in one space) > values in fields. Can be hidden. (have to keep creating fields, can not attach to buttons or other fields)</text> </content> <name></name> <script></script> </card> card_6946.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>6946</id> <filler1>0</filler1> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>2801</owner> <link rel="stylesheet" type="text/css" href="stylesheet_5301.css" /> <part> <id>1</id> <type>button</type> <visible> <true /> </visible> <reserved5> 0 </reserved5> <reserved4> 0 </reserved4> <reserved3> 0 </reserved3> <reserved2> 0 </reserved2> <reserved1> 0 </reserved1> <enabled> <true /> </enabled> <rect> <left>194</left> <top>12</top> <right>271</right> <bottom>64</bottom> </rect> <style>rectangle</style> <showName> <true /> </showName> <highlight> <false /> </highlight> <autoHighlight> <true /> </autoHighlight> <sharedHighlight> <true /> </sharedHighlight> <family>0</family> <titleWidth>0</titleWidth> <icon>11260</icon> <textAlign>center</textAlign> <font>Chicago</font> <textSize>12</textSize> <textStyle>plain</textStyle> <name>Old Train Set</name> <script>on mouseUp set cursor to watch -- for the slower machines go to stack "Train Set" -- ∆ end mouseUp </script> </part> <content> <layer>background</layer> <id>2</id> <text>In the HyperCard train set, it would be nice to have variables that belong to the Engine. Could have two engines. Script could be much simpler. Instance variables like any Smalltalk or Common Lisp Object System.</text> </content> <name></name> <script></script> </card> card_3026.xml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" > <card> <id>3026</id> <filler1>0</filler1> <cantDelete> <false /> </cantDelete> <showPict> <true /> </showPict> <dontSearch> <false /> </dontSearch> <owner>2801</owner> <link rel="stylesheet" type="text/css" href="stylesheet_5301.css" /> <content> <layer>background</layer> <id>2</id> <text><span class="style1"></span><span class="style4">Instance Variables for buttons, fields, cards, and backgrounds </span><span class="style1"> Ted Kaehler, Apple Computer © Apple Computer, 1992.</span></text> </content> <name></name> <script></script> </card>